package com.lc.pda.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 入库单主表
 * </p>
 *
 * @author zww
 * @since 2023-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wms_receipt")
@ApiModel(value = "WmsReceipt对象", description = "入库单主表")
public class WmsReceipt implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "receiptId", type = IdType.AUTO)
    private String receiptId;

    @ApiModelProperty(value = "订单号")
    @TableField("receiptCode")
    private String receiptCode;

    @ApiModelProperty(value = "入库类型")
    @TableField("receiptType")
    private String receiptType;

    @ApiModelProperty(value = "采购订单号")
    @TableField("purchasingCode")
    private String purchasingCode;

    @ApiModelProperty(value = "审核人")
    private String reviewer;

    @ApiModelProperty(value = "操作者")
    private String operator;

    @ApiModelProperty(value = "入库单状态")
    @TableField("receiptStatus")
    private String receiptStatus;

    @ApiModelProperty(value = "是否启动")
    @TableField("enabelMark")
    private Integer enabelMark;

    @ApiModelProperty(value = "是否删除")
    @TableField("deleteMark")
    private Integer deleteMark;

    @ApiModelProperty(value = "创建者")
    @TableField("createBy")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("updateBy")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("updateTime")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    private List<WmsReceiptDetail> details;


}
